08. Create a Fragment
Create a Fragment
Fragment Naming Convention
The class name should be in CamelCase. Ex: SignInFragment
The corresponding XML file should follow this naming convention fragment_<FRAGMENT_NAME>.xml
Ex: fragment_sign_in.xml
For a full list of Android naming conventions, checkout ribot's Android Guidelines.
Choosing Fragment Support Library
Our Fragment class use the v4 Support Library. The v4 libraries are designed to be used with Android 2.3 (API level 9) and higher. They include the largest set of APIs compared to the other libraries, including support for application components, user interface features, accessibility, data handling, network connectivity, and programming utilities.